]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
messageList: Fix `TypeError` in `Message.useBodyMarkup` setter
authorAleksandr Mezin <mezin.alexander@gmail.com>
Fri, 8 Mar 2024 16:30:00 +0000 (18:30 +0200)
committerMarge Bot <marge-bot@gnome.org>
Fri, 8 Mar 2024 19:36:50 +0000 (19:36 +0000)
Setting `useBodyMarkup` to `true` fails with:

    JS ERROR: TypeError: this.setBody is not a function
    set useBodyMarkup@resource:///org/gnome/shell/ui/messageList.js:585:14

Fixes: f0e863f529 "messageList: Use GObject properties for Message"
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3232>

js/ui/messageList.js

index ad93594ef185e3b32a80eb3f78c1bfa67ae6da8e..acc50331936bcfede6d3587c8e9a27893421dc3d 100644 (file)
@@ -582,7 +582,7 @@ export const Message = GObject.registerClass({
         if (this._useBodyMarkup === enable)
             return;
         this._useBodyMarkup = enable;
-        this.setBody(this._bodyText);
+        this.body = this._bodyText;
         this.notify('use-body-markup');
     }